package com.ycx.ycxmybatismanagement.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Slf4j
@Aspect
//@Component
@Order(-1)
public class MyAspect2 {

    @Pointcut("execution(* com.ycx.ycxmybatismanagement.service.Impl.*.*(..))")
    public void pc(){}

    @Before("pc()")
    public void before(){
        log.info("222before");
    }
    @After("pc()")
    public void After() throws Throwable {
        log.info("222After");
    }


}
